<?php
namespace cms\modules\v1\controllers;

use cms\modules\v1\models\express\ExpressCompany;
use common\models\Functions;
use common\models\Status;
use Yii;
class ExpressController extends DefaultController
{
    public $modelClass = 'cms\modules\v1\models\ExpressCompany';

    public function actionMap() {
        if (\Yii::$app->request->isGet) {
            return (new ExpressCompany())->getListForSelect();
        }
    }

    public function actionTypeMap() {
        if (Yii::$app->request->isGet) {
            return Functions::formatRestAPI(0,'',Status::EXPRESS_TYPE_MAP);
        }
    }

}
